﻿// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。
//
// 本项目主要遵循 MIT 许可证和 Apache 许可证（版本 2.0）进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。
//
// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动！任何基于本项目二次开发而产生的一切法律纠纷和责任，我们不承担任何责任！
using Admin.NET.Application.Entity;
using Magicodes.ExporterAndImporter.Core;
namespace Admin.NET.Application;

/// <summary>
/// 物资信息表输出参数
/// </summary>
public class StoreMaterialsOutput
{
    /// <summary>
    /// 主键Id
    /// </summary>
    public long Id { get; set; }    
    
    /// <summary>
    /// 分类
    /// </summary>
    public long? StoreTypeId { get; set; }    
    
    /// <summary>
    /// 分类 描述
    /// </summary>
    public string StoreTypeDisplayName { get; set; } 
    
    /// <summary>
    /// 物资名称
    /// </summary>
    public string Name { get; set; }    
    
    /// <summary>
    /// 单位
    /// </summary>
    public string? Unit { get; set; }    
    
    /// <summary>
    /// 单价
    /// </summary>
    public decimal? Price { get; set; }    
    
    /// <summary>
    /// 最小库存
    /// </summary>
    public int? MinStock { get; set; }    
    
    /// <summary>
    /// 最大库存
    /// </summary>
    public int? MaxStock { get; set; }    
    
    /// <summary>
    /// 排序
    /// </summary>
    public int? OrderNo { get; set; }    
    
    /// <summary>
    /// 状态
    /// </summary>
    public StatusEnum Status { get; set; }    
    
    /// <summary>
    /// 当前库存数量
    /// </summary>
    public decimal CurrentStock { get; set; }    
    
    /// <summary>
    /// 可用库存
    /// </summary>
    public decimal AvailableStock { get; set; }    
    
    /// <summary>
    /// 预留库存
    /// </summary>
    public decimal ReservedStock { get; set; }    
    
    /// <summary>
    /// 入库库存
    /// </summary>
    public decimal InTransitStock { get; set; }    
    
    /// <summary>
    /// 库存状态
    /// </summary>
    public StockStatusEnum StockStatus { get; set; }    
    
    /// <summary>
    /// 最后库存更新时间
    /// </summary>
    public DateTime? LastStockUpdateTime { get; set; }    
    
    /// <summary>
    /// 备注
    /// </summary>
    public string? Remark { get; set; }    
    
    /// <summary>
    /// 租户Id
    /// </summary>
    public long? TenantId { get; set; }    
    
    /// <summary>
    /// 软删除
    /// </summary>
    public bool IsDelete { get; set; }    
    
    /// <summary>
    /// 创建时间
    /// </summary>
    public DateTime? CreateTime { get; set; }    
    
    /// <summary>
    /// 更新时间
    /// </summary>
    public DateTime? UpdateTime { get; set; }    
    
    /// <summary>
    /// 创建者Id
    /// </summary>
    public long? CreateUserId { get; set; }    
    
    /// <summary>
    /// 创建者姓名
    /// </summary>
    public string? CreateUserName { get; set; }    
    
    /// <summary>
    /// 修改者Id
    /// </summary>
    public long? UpdateUserId { get; set; }    
    
    /// <summary>
    /// 修改者姓名
    /// </summary>
    public string? UpdateUserName { get; set; }    
    
}
/// <summary>
/// 分类 树选择器输出参数
/// </summary>
public class TreeStoreTypeOutputMa : StoreMaterials
{
    /// <summary>
    /// 节点值
    /// </summary>
    public long? Value { get; set; }
    
    /// <summary>
    /// 节点文本
    /// </summary>
    public string Label { get; set; }
    
    /// <summary>
    /// 子集数据
    /// </summary>
    public List<TreeStoreTypeOutputMa> Children { get; set; }
}


/// <summary>
/// 物资信息表数据导入模板实体
/// </summary>
public class ExportStoreMaterialsOutput : ImportStoreMaterialsInput
{
    [ImporterHeader(IsIgnore = true)]
    [ExporterHeader(IsIgnore = true)]
    public override string Error { get; set; }
}
